package com.tudouji.project.produce.mapper;

import java.util.List;

import com.tudouji.framework.web.domain.AjaxResult;
import com.tudouji.project.produce.domain.Pickinglist;
import com.tudouji.project.produce.domain.Pickinglistitem;

/**
 * 领料单Mapper接口
 * 
 * @author tudouji
 * @date 2022-06-01
 */
public interface PickinglistMapper 
{
    /**
     * 查询领料单
     * 
     * @param guid 领料单ID
     * @return 领料单
     */
    public Pickinglist selectPickinglistById(String guid);
    public Pickinglist selectPickinglistByNewId(Long id);

    /**
     * 查询领料单列表
     * 
     * @param pickinglist 领料单
     * @return 领料单集合
     */
    public List<Pickinglist> selectPickinglistList(Pickinglist pickinglist);
    public List<Pickinglist> selectPickinglistListPc(Pickinglist pickinglist);

    /**
     * 新增领料单
     * 
     * @param pickinglist 领料单
     * @return 结果
     */
    public int insertPickinglist(Pickinglist pickinglist);

    /**
     * 修改领料单
     * 
     * @param pickinglist 领料单
     * @return 结果
     */
    public int updatePickinglist(Pickinglist pickinglist);
    public int updatePickinglistNew(Pickinglist pickinglist);

    /**
     * 删除领料单
     * 
     * @param guid 领料单ID
     * @return 结果
     */
    public int deletePickinglistById(String guid);

    /**
     * 批量删除领料单
     * 
     * @param guids 需要删除的数据ID
     * @return 结果
     */
    public int deletePickinglistByIds(String[] guids);

    Pickinglist findDetail(Long id);

    List<Pickinglist> selectApplyPendingList(Pickinglist pickinglist);

    List<Pickinglist> selectPickinglistByPerm(Pickinglist pickinglist);

    List<Pickinglist> selectPickinglistByUser(Pickinglist pickinglist);

    Pickinglist getInfo(Long id);

    int scrapapplyCount(String id);
    int materialretapplyCount(String id);
    int whinapplyCount(String id);

    public List<Pickinglist> findCollect(Pickinglist plDetail);
    public List<Pickinglist> findPPDetail(Pickinglist plDetail);


}
